package com.dd.demo.day4;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;


public class conn {

    public static void main(String[] args) {
        try {
            Class.forName("com.mysql.cj.jdbc.Driver");
            Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/future_community", "root", "cc65152801");
            Statement sql = con.createStatement();
            String new_member = "insert into property_label(label_id,label_site_id,label_org_id,label_name,label_sort,label_create_at,label_update_at) values('123456789987654321',NULL,NULL,NULL,NULL,'2020-11-23 14:13:18','2020-11-23 14:13:18')";
            sql.executeUpdate(new_member);
            con.close();


        } catch (SQLException | ClassNotFoundException e) {
            e.printStackTrace();
            System.out.println("SQL异常！！！！");
        }


    }
}

